package com.test.aop;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/9/27 16:24
 */
public class Main {
    public static void main(String[] args) {
        ArithmeticCalculator arithmeticCalculator = new ArithmeticCalculatorImpl();
        ArithmeticCalculator proxy = new ArithmetricCalculatorLoggingProxy(arithmeticCalculator).getLoggingProxy();
        System.out.println(proxy.add(1, 1));
    }
}
